#include<iostream>
#include<string.h>
using namespace std;
int main()
{ char a[20];
  int i,n,ok=0;
cout<<"introduceti sirul dorit: ";
cin>>a;
n=strlen(a);
for(i=0;i<n/2;i++)
 if(a[i]!=' ')
     if(a[i]==a[n-i-1])
          ok=1;
if(ok)
 cout<<"este fraza palindrom";
else
 cout<<"nu este fraza palindrom";  

return 0;
}
